Plug another memory leak in plugman
authorMatthias Clasen <mclasen@redhat.com>
Sun, 1 Feb 2015 16:07:12 +0000 (11:07 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 1 Feb 2015 16:07:12 +0000 (11:07 -0500)
examples/plugman.c

index 53f502e3e3d3f3a250c4356dae61dd1b1e3f0ef7..3e7e02aeee5f7f0a3842bfa680027fadd446f44a 100644 (file)
@@ -359,7 +359,7 @@ configure_plugins (GSimpleAction *action,
     {
       g_warning ("%s", error->message);
       g_error_free (error);
-      return;
+      goto out;
     }
 
   dialog = (GtkWidget *)gtk_builder_get_object (builder, "plugin-dialog");
@@ -373,6 +373,9 @@ configure_plugins (GSimpleAction *action,
   g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
 
   gtk_window_present (GTK_WINDOW (dialog));
+
+out:
+  g_object_unref (builder);
 }
 
 static GActionEntry app_entries[] = {